package com.ibm.risk.irmp.base.auth.entity;

import com.ibm.risk.irmp.common.auth.vo.RoleVo;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@Table(name = "ri_base_auth_role")
@EqualsAndHashCode(callSuper = true)
public class SystemRole //extends Auditable
    extends RoleVo {
    public final static String SUPER_ADMIN = "SUPER_ADMIN";

    public SystemRole() {

    }

    public SystemRole(String roleCode, String roleName) {
        this.roleCode = roleCode;
        this.roleName = roleName;
    }

    @Id
    private String roleCode;
    private String roleName;
    private Boolean isBuildin;
    private Boolean isActive;
    @Transient
    private Boolean update;
}
